<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>专题活动</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="admin.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../module/inventory/css/admin/index.css" />
<script type="text/javascript" src="../script/jquery-1.4.4.min.js"></script>
<script language="javascript" src="../script/Calendar.js"></script>
<script type="text/javascript" src="../module/inventory/scripts/yui/yahoo-dom-event/yahoo-dom-event.js" ></script>
<script type="text/javascript" src="../module/inventory/scripts/yui/dragdrop/dragdrop-min.js" ></script>
<script type="text/javascript" src="../module/inventory/scripts/yui/calendar/calendar-min.js"></script>
<script type="text/javascript" src="../script/jquery.validation.min.js"></script>
<script src="../script/my_lightbox.js" language="javascript"></script>

<script type="text/javascript">
$(function(){
    /* 全选 */
     $('.checkall').click(function(){
        var _self = this;
        $('.checkitem').each(function(){
            if (!this.disabled)
            {
                $(this).attr('checked', _self.checked);
            }
        });
        $('.checkall').attr('checked', this.checked);
    });  
});
</script>
</head>
<body>
    <div class="container">
        <div class="flow">
            <div class="itemtitle">
                <h3>专题活动</h3>
                <ul>
                    <li><a href="#"><span>管理</span></a></li>
                    <li><a href="?m=share_special&s=share_special_add_edit.php&operation=add"><span>添加</span></a></li>
                </ul>
            </div>
        </div>
        <div class="h35"></div>  
        <form action="" method="get">
    <input type="hidden" name="m" value="share_special">
    <input type="hidden" name="s" value="share_special_list.php">
    <table class="select_table">
        <tbody>
            <tr>
<!--                <td width="60">时间:</td>
                <td class="yui-skin-sam" width="200">
                    <input id="sdate" name="sdate" type="text" size="12" value="<{$smarty.get.sdate}>" onfocus="lockinput(this)" />
                    <input id="edate" name="edate" type="text" size="12" value="<{$smarty.get.edate}>" onfocus="lockinput(this)" />
                    <div id="calContainer" style="display:none; position:absolute;"></div>
                </td> -->
                
                <td width="60">状态：</td> 
                
                <td width="80">
                    <select name="statu" id="statu">
                        <option value="">全部</option>
                        <option value="1" <{if "1"===$smarty.get.statu}>selected="selected"<{/if}>>开启</option>
                        <option value="2" <{if "2"===$smarty.get.statu}>selected="selected"<{/if}>>推荐</option>
                        <option value="0" <{if "0"==$smarty.get.statu}>selected="selected"<{/if}>>关闭</option>
                    </select>
                </td>
                <td width="60">分类：</td>
                <td width="100">
                    <select class="select"  name="cat_id" id="cat_id">
                        <option value="">全部</option>
                        <{foreach item=catName key=catId from=$catArr}>
                        <option value="<{$catId}>" <{if $catId==$smarty.get.cat_id}>selected<{/if}>>
                        <{$catName}>
                        </option>
                        <{/foreach}>
                    </select>
                 </td>
                <td><input type="image" src="<{$config.weburl}>/image/admin/search.gif" /></td>
            </tr>
            
        </tbody>
    </table>
    </form>
        <form action="" method="post">
        <table class="table">
            <thead>
                <tr>
                    <th class="partition" colspan="99">活动列表</th>
                </tr>
            </thead>
            <tbody>
                <tr class="header">
                    <th width="30"></th>
                    <th width="70">显示顺序</th>
                    <th width="50">专题ID</th>
                    <th>标题</th>
                    <th>分类名称</th>
                    <th>喜欢数(实)</th>
                    <th>分享数(实)</th>
                    <th>浏览数(实)</th>
                    <th>评论数</th>
                    <th width="60">状态</th>
                    <th width="100">操作</th>
                </tr>
                <{foreach item=list from=$de.list}>
                <tr>
                    <td><input type="checkbox" value="<{$list.id}>" class="checkitem" name="chk[]"></td>
                    <td><input type="text" class="w50" maxlength="3" name="displayorder[<{$list.id}>]" value="<{$list.displayorder}>" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" onkeyup="value=value.replace(/[^\d]/g,'')" /></td>
                    <td><{$list.id}></td>
                    <td><{$list.title}></td>
                    <td><{$catArr[$list.cat_id]}></td>
                    <td><{$list.favorite_num}>(<{$list.favorite_num-$list.virtual_favorite_num}>)</td>
                    <td><{$list.share_num}>(<{$list.share_num-$list.virtual_share_num}>)</td>
                    <td><{$list.visit_num}>(<{$list.visit_num-$list.virtual_visit_num}>)</td>
                    <td><{$list.comment_num}></td>
                    <td><{if $list.status==1}>开启<{elseif $list.status==2}>推荐<{else}>关闭<{/if}></td>
                    <td>
                    <a title="添加分享数据" href="?m=share_data&s=share_data_add_edit.php&operation=add&share_url=/share-special-<{$list.id}>.html"><{$addimg}></a> 
                    <a href="?m=share_special&s=share_special_add_edit.php&operation=edit&editid=<{$list.id}><{$cond}>"><{$editimg}></a> 
                    <a onclick="return confirm('确定删除吗');" href="?m=share_special&s=share_special_list.php&act=del&delid=<{$list.id}><{$cond}>"><{$delimg}></a>
                    </td>
                </tr>
                <{foreachelse}>
                <tr>
                    <td class="norecord" colspan="99"><i></i><span>暂无符合条件的数据记录</span></td>
                </tr>
                <{/foreach}>
            </tbody>
            <tfoot>
                <tr>
                    <td colspan="99">
                        <input type="checkbox" class="checkall" id="del">
                        <input type="hidden" name="act" value="op" />
                        <input type="submit" value="提交" />
                        <div class="page"><{$de.page}></div>
                    </td>
                </tr>
            </tfoot>
        </table>
        </form>
    </div>
</body>
</html>